<template>
  <div class="history-page">
    <div class="page-header">
      <h1>观看历史</h1>
      <p>记录你的观看足迹，随时继续观看</p>
    </div>
    <div class="video-grid">
      <VideoCard
        v-for="video in historyVideos"
        :key="video.id"
        :video="video"
        class="video-card"
      />
    </div>
  </div>
</template>

<script>
import VideoCard from '@/components/video/VideoCard.vue'

export default {
  name: 'History',
  components: {
    VideoCard
  },
  data() {
    return {
      historyVideos: [
        {
          id: 1,
          title: '乡村生活：手工制作传统美食',
          thumbnail: '/path/to/thumbnail1.jpg',
          duration: '5:30',
          views: '15.8万',
          author: '美食达人',
          avatar: '/path/to/avatar1.jpg',
          watchTime: '2024-03-08 14:30',
          progress: 65
        },
        // 添加更多视频数据...
      ]
    }
  }
}
</script>

<style scoped>
.history-page {
  padding: 6rem 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.page-header p {
  font-size: 1.1rem;
  color: #666;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.video-card {
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .history-page {
    padding: 5rem 1rem 1rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
  }
}
</style> 